<?

require_once('view/htmlTag.class.php');

class form_label{


	private $text;
	private $field;
	private $html;
	
	public function __construct($iText, $iField){
	
		$this -> html = new view_htmlTag('label');
		$this -> text = $iText;
		$this -> field = $iField;
		$this -> html -> setText($this -> text);
	}
	
	
	public function render(){
		
		
		$this -> html -> setAttribute('for', $this -> field);
		
		return $this -> html -> render();
	
	}
	
	public function addText($iText){
	
		$this -> html -> addText($iText);
	
	}
	

	public function getHtml(){
	
		return $this -> html;
	
	}
	
	


}




?>